import request from "@/utils/request";

export function add(data) {
  return request({
    url: "/sinohis/pension/staff/volunteer/addGeneralVolunteer",
    method: 'post',
    data

  });

}
export function addelder(data) {
  return request({
    url: "/sinohis/pension/staff/volunteer/addLivingVolunteer/"+data.elderlyCode,
    method: 'post',
    data

  });

}
export function addservice(data) {
  return request({
    url: "/sinohis/pension/staff/volunteer/addVolunteerServiceRecord/"+data.number+'}',
    method: 'post',
    data

  });

}
export function searchserviceinfo(params) {
  return request({
    url: "/sinohis/pension/staff/volunteer/searchServiceRecordOfConditions",
    method: 'GET',
    params

  });

}
export function quitvoluteer(data) {
  return request({
    url: "/sinohis/pension/staff/volunteer/quit/"+data.number,
    method: 'put',
    data

  });

}
export function searchvolunteer(params) {
  return request({
    url: "/sinohis/pension/staff/volunteer/searchVolunteersOfConditions",
    method: 'get',
    params

  });

}
export function searchelder(params) {
  return request({
    url: "/sinohis/pension/profession/elderlyfile/query/file/"+params.elderlyCondition,
    method: 'get',
    params

  });

}
export function del(params) {
  return request({
    url: "/sinohis/pension/staff/volunteer/removeServiceRecord/"+params.recordNumber,
    method: 'DELETE',
    params

  });

}
